package sufutian.com.frameworkdemo.network;

import java.io.Serializable;


public interface IJson extends Serializable {


    public boolean put(String key, int value);

    public boolean put(String key, Object value);

    public String toString();

    public String getString(String key);

    public int getInt(String key);

    public boolean has(String key);

    boolean isNull(String name);
    
    public boolean getBoolean(String key);

    public IJson getJson(String key);
    
    public IJson[] getJsonArray(String key);
    /**
     * 获取普通非json数组
     * @param key
     * @return
     */
    public String[] getArray(String key);

    /**
     * 设置请求的接口名
     * @param interfaceName
     */
    public void setRequestSourceName(String interfaceName);

    /**
     * 设置请求的业务类型，对于请求接口中定义的BusinessType
     * @param businessType
     */
    public void setRequestBusinessType(int businessType);

    /**
     * 获取请求的接口名
     */
    public String getRequestSourceName();

    /**
     * 获取请求的接口对应的类型
     */
    public int getRequestBusinessType();
}
